package sv.gob.mh.dgii.dao.cc;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.Property;
import org.springframework.orm.ObjectRetrievalFailureException;
import org.springframework.stereotype.Repository;
import org.springframework.ui.Model;
import sv.gob.mh.dgii.dao.hibernate.HibernateDaoImpl;
import sv.gob.mh.dgii.model.CcNitSinMov;

@Repository
public class CcNitSinMovDaoImpl extends HibernateDaoImpl implements CcNitSinMovDAO {

    public static final String _MESTADO = "MEstado";
    private static final String QUERY_ASALARIADO = "CcNitSinMovDaoImpl.fisAsalariado";
    private static final String QUERY_NO_CONTRIBUYENTE = "CcNitSinMovDaoImpl.fisNoContribuyente";
    private static final Log log = LogFactory.getLog(CcNitSinMovDaoImpl.class);

    public CcNitSinMovDaoImpl() {
        super(CcNitSinMov.class);
    }

    @Override
    public void updateStatusAutoAnalisis(String nit, String usuario, String ip) {
        String[] params = {nit, usuario, ip};
        try {
            executeProcedure(
                    "call PKG_CTACTE_SOLVENCIAS.pr_validate_auto_status_web (?,?,?)", params);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
       
}